//
//  BQILView.m
//  Adorable_Things
//
//  Created by ybq on 16/1/13.
//  Copyright © 2016年 Banana Inc. All rights reserved.
//

#import "BQILView.h"

@implementation BQILView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        CGFloat width = frame.size.width;
        CGFloat height = frame.size.height;
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, (width - 5) / 2, height)];
        [self addSubview:_imageView];
        
        _label = [[UILabel alloc] initWithFrame:CGRectMake(width / 2 + 2.5, 0, (width - 5) / 2, height)];
        _label.font = [UIFont systemFontOfSize:11];
        [self addSubview:_label];
    }
    return self;
}


@end
